package com.example.safeassistan.home.model;

import java.util.List;

public class OverDueTaskListModel {


    /**
     * success : true
     * message : 操作成功！
     * code : 0
     * result : {"records":[{"postName":"院长","checkTypeName":"专业性检查","defName":"电气线路检查","startTime":"2021-04-15 16:24:48","checkFrequency":1,"endTime":"2021-06-01 11:00:53"},{"postName":"院长","checkTypeName":"季节性检查","defName":"电气线路检查","startTime":"2021-04-15 16:53:20","checkFrequency":1,"endTime":"2021-06-02 11:00:57"}],"total":2,"size":10,"current":1,"orders":[],"optimizeCountSql":true,"hitCount":false,"countId":null,"maxLimit":null,"searchCount":true,"pages":1}
     * timestamp : 1623207675792
     */

    private Boolean success;
    private String message;
    private Integer code;
    private ResultDTO result;
    private Long timestamp;

    public Boolean isSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public ResultDTO getResult() {
        return result;
    }

    public void setResult(ResultDTO result) {
        this.result = result;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public static class ResultDTO {
        /**
         * records : [{"postName":"院长","checkTypeName":"专业性检查","defName":"电气线路检查","startTime":"2021-04-15 16:24:48","checkFrequency":1,"endTime":"2021-06-01 11:00:53"},{"postName":"院长","checkTypeName":"季节性检查","defName":"电气线路检查","startTime":"2021-04-15 16:53:20","checkFrequency":1,"endTime":"2021-06-02 11:00:57"}]
         * total : 2
         * size : 10
         * current : 1
         * orders : []
         * optimizeCountSql : true
         * hitCount : false
         * countId : null
         * maxLimit : null
         * searchCount : true
         * pages : 1
         */

        private Integer total;
        private Integer size;
        private Integer current;
        private Boolean optimizeCountSql;
        private Boolean hitCount;
        private Object countId;
        private Object maxLimit;
        private Boolean searchCount;
        private Integer pages;
        private List<RecordsDTO> records;
        private List<?> orders;

        public Integer getTotal() {
            return total;
        }

        public void setTotal(Integer total) {
            this.total = total;
        }

        public Integer getSize() {
            return size;
        }

        public void setSize(Integer size) {
            this.size = size;
        }

        public Integer getCurrent() {
            return current;
        }

        public void setCurrent(Integer current) {
            this.current = current;
        }

        public Boolean isOptimizeCountSql() {
            return optimizeCountSql;
        }

        public void setOptimizeCountSql(Boolean optimizeCountSql) {
            this.optimizeCountSql = optimizeCountSql;
        }

        public Boolean isHitCount() {
            return hitCount;
        }

        public void setHitCount(Boolean hitCount) {
            this.hitCount = hitCount;
        }

        public Object getCountId() {
            return countId;
        }

        public void setCountId(Object countId) {
            this.countId = countId;
        }

        public Object getMaxLimit() {
            return maxLimit;
        }

        public void setMaxLimit(Object maxLimit) {
            this.maxLimit = maxLimit;
        }

        public Boolean isSearchCount() {
            return searchCount;
        }

        public void setSearchCount(Boolean searchCount) {
            this.searchCount = searchCount;
        }

        public Integer getPages() {
            return pages;
        }

        public void setPages(Integer pages) {
            this.pages = pages;
        }

        public List<RecordsDTO> getRecords() {
            return records;
        }

        public void setRecords(List<RecordsDTO> records) {
            this.records = records;
        }

        public List<?> getOrders() {
            return orders;
        }

        public void setOrders(List<?> orders) {
            this.orders = orders;
        }

        public static class RecordsDTO {
            /**
             * postName : 院长
             * checkTypeName : 专业性检查
             * defName : 电气线路检查
             * startTime : 2021-04-15 16:24:48
             * checkFrequency : 1
             * endTime : 2021-06-01 11:00:53
             */

            private String postName;
            private String checkTypeName;
            private String defName;
            private String startTime;
            private Integer checkFrequency;
            private String endTime;

            public String getPostName() {
                return postName;
            }

            public void setPostName(String postName) {
                this.postName = postName;
            }

            public String getCheckTypeName() {
                return checkTypeName;
            }

            public void setCheckTypeName(String checkTypeName) {
                this.checkTypeName = checkTypeName;
            }

            public String getDefName() {
                return defName;
            }

            public void setDefName(String defName) {
                this.defName = defName;
            }

            public String getStartTime() {
                return startTime;
            }

            public void setStartTime(String startTime) {
                this.startTime = startTime;
            }

            public Integer getCheckFrequency() {
                return checkFrequency;
            }

            public void setCheckFrequency(Integer checkFrequency) {
                this.checkFrequency = checkFrequency;
            }

            public String getEndTime() {
                return endTime;
            }

            public void setEndTime(String endTime) {
                this.endTime = endTime;
            }
        }
    }
}
